
<style>
.affix{top:10px;}
.head-style-list li,.editor-template-list li{cursor: pointer;}
</style>
		<div class="ui-portlet">
			{{template wxes/_user_wxes}}
			<ol class="breadcrumb">
			  <li><a href="/users/index"><i class="fa fa-home"></i>&nbsp;&nbsp;个人中心</a></li>
			  <li><a href="/wx_activities/mine">微活动</a></li>
			  <li class="active">新增|编辑</li>
			</ol> 
		</div>          
       <hr>

{{$this->Form->create('WxActivity',array('class'=>'form-horizontal','role'=>'form'))}}
		
	<div class="tab-content">
		
			
		<div role="tabpanel" class="tab-pane active" id="chi-info">
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxActivityAddress">活动类型</label>
				<div class="col-sm-9 controls"> <!--'Baoming'=>'报名', -->
					{{$this->Form->input('model',array('class'=>'form-control',
						'options'=>array('Qa'=>'收集提议','WxVote'=>'投票'),
						'div'=>false,'label'=>false,))}}
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxActivityName">活动名称</label>
				<div class="col-sm-9 controls">
					{{$this->Form->hidden('id')}}
					{{$this->Form->input('name',array('class'=>'form-control','div'=>false,'label'=>false))}}
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxStorefrontCoverImg">封面图片</label>
				<div class="col-sm-9 controls select">
					{{$this->Swfupload->load('coverimg',array(
					'label'=>false,'modelClass'=>'WxActivity',
					'no_db'=>1,'upload_limit'=>1,
					'file_types'=> '*.jpg;*.gif;*.png;*.bmp',
					'isadmin'=>false
					))}}
				</div>
			</div>			
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxActivityAddress">是否有效</label>
				<div class="col-sm-9 controls form-inline">
					{{$this->Form->input('status',array('class'=>'form-control','default'=>1,'div'=>false,'label'=>false,))}}
				</div>
			</div>
			<!--
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxActivityAddress">开放提交数据</label>
				<div class="col-sm-9 controls form-inline">
					{{$this->Form->input('allow_add',array('class'=>'form-control','default'=>0,'div'=>false,'label'=>false,))}}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxActivityAddress">提交后允许修改</label>
				<div class="col-sm-9 controls form-inline">
					{{$this->Form->input('allow_edit',array('class'=>'form-control','default'=>0,'div'=>false,'label'=>false,))}}
				</div>
			</div>
			 -->
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxStorefrontPriority">开始时间</label>
				<div class="col-sm-9 controls form-inline">
					{{$this->Form->input('started',array('class'=>'form-control','type'=>'datetime','dateFormat'=>'YMD','timeFormat'=>24,
					'monthNames'=> array(
						1=>'1月',2=>'2月',3=>'3月',4=>'4月',5=>'5月',6=>'6月',
						7=>'7月',8=>'8月',9=>'9月',10=>'10月',11=>'11月',12=>'12月',
					),
					'div'=>false,'label'=>false,))}}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxStorefrontPriority">结束时间</label>
				<div class="col-sm-9 controls form-inline">
					{{$this->Form->input('ended',array('class'=>'form-control','type'=>'datetime','dateFormat'=>'YMD','timeFormat'=>24,
					'monthNames'=> array(
						1=>'1月',2=>'2月',3=>'3月',4=>'4月',5=>'5月',6=>'6月',
						7=>'7月',8=>'8月',9=>'9月',10=>'10月',11=>'11月',12=>'12月',
					),
					'div'=>false,'label'=>false,))}}
				</div>
			</div>
			
			<div class="form-group">
				<label class="col-sm-2 control-label" for="WxActivitySummary">活动摘要</label>
				<div class="col-sm-9 controls">
					{{$this->Form->input('summary',array('class'=>'form-control','rows'=>'3','div'=>false,'label'=>false,))}}
				</div>
			</div>
			
								
			<div class="form-group clearfix">
				<p><label class="col-sm-2 control-label" for="WxActivityContent">活动详情</label></p>
				<div class="col-sm-12 controls">
					{{$this->Form->input('content',array('rows'=>'3','div'=>false,'label'=>false,))}}
				</div>
			</div>
		</div>
	</div>
	
	
	<div class="form-group">
		<label class="col-sm-2 control-label"></label>
		<div class="col-sm-9"><input class="btn btn-primary" type="submit" value="提交"></div>
	</div>
{{$this->Form->end()}}
{{$this->Html->script(array(
	'swfupload/swfupload.js',
	'swfupload/swfupload.queue.js',
	'swfupload/swfupload.cookies.js',
	'swfupload/fileprogress.js',
	'swfupload/handlers.js',
))}}
<link href="/cache/96619a5672.css" rel="stylesheet" type="text/css" >
<script type="text/javascript" src="/js/ueditor/ueditor.config.js"></script>
<script src="/js/ueditor/ueditor.all.min.js"></script>
<script src="/open/a92d301d77.js" type="text/javascript"></script>


<?php  
echo $this->Combinator->script(array(
	'ueditor/lang/zh-cn/zh-cn.js',
	'i18n/language-zh-cn.js',
	'jquery/jquery.cookie.js','jquery/jquery.mousewheel.min.js',
	'tinycolor-min.js',
	'135editor.js','jquery/jquery.jgrowl.min.js','metro-ui/slider.js',
	'common.js',
	'front.js',
	'jquery/jquery.mixitup.min.js','jquery/jquery-sortable-min.js',
	'jquery/jquery.lazyload.js'
));
?>

<script>
	var current_editor =  UE.getEditor('WxActivityContent',{
		initialFrameHeight:350,
		open_editor: true,
		style_width:360, //样式区宽度像素
		appkey:'566d34e0-4bac-443b-8a80-37f89fde689a',
		style_url : 'http://www.135editor.com/editor_styles/open?inajax=1&appkey=566d34e0-4bac-443b-8a80-37f89fde689a'
	});
</script>